package com.cloud.lan.integration.submail.sms.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * Created by zhouquan on 2022/4/2.
 */
@Data
public class SmsTemplateQueryRes extends SmsTemplateHandleRes {

    @JSONField(name="start_row")
    private int startRow;

    @JSONField(name="end_row")
    private int endRow;
    private List<SmsTemplateModel> templates;
    private SmsTemplateModel template;

    public static SmsTemplateQueryRes error(String code,String msg){
        SmsTemplateQueryRes queryRes = new SmsTemplateQueryRes();
        queryRes.setStatus("error");
        queryRes.setCode(code);
        queryRes.setMsg(msg);
        return queryRes;
    }
}
